# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=emldump
pkgver=0.0.11
pkgrel=3
groups=('blackarch' 'blackarch-forensic')
pkgdesc='Analyze MIME files.'
arch=('any')
url='https://blog.didierstevens.com/my-software/#emldump'
license=('custom:unknown')
depends=('python2')
source=("http://didierstevens.com/files/software/emldump_V${pkgver//./_}.zip")
sha512sums=('df82abf555e25fd9bda444de0c44e93bcf54c5942fa28da953adcd3d27f92265dadb5e61bc704fc6f45a158128a1066884bea6a95598e7ead6696f314fa7f755')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

